package com.longdaji.decoration.bean;

import java.util.List;

/**
 * Created by Kanade on 2018/3/19 0019.
 */

public class Order {
    /**
     * captainId : 0
     * cartId : 0
     * delFlag : string
     * domitoryId : 0
     * endDate : string
     * expressMethod : string
     * generateOrderDate : string
     * goods : [{"commentStatus":"string","delFlag":"string","goodsAttr":"颜色：红色,尺寸:xl","goodsId":0,"goodsName":"string","goodsPrice":0,"goodsSkuImg":"string","id":0,"isPackage":"string","orderNo":"string","productNum":0,"skuId":0}]
     * orderStatus : 0
     * productAmountTotal : 0
     * productCount : 0
     * shippingId : 0
     * startDate : string
     * userid : string
     */

    private int captainId;
    private int cartId;
    private String delFlag;
    private int domitoryId;
    private String endDate;
    private String expressMethod;
    private String generateOrderDate;
    private int orderStatus;
    private int productAmountTotal;
    private int productCount;
    private int shippingId;
    private String startDate;
    private String userid;
    private List<GoodsBean> goods;

    public Order(int captainId, int cartId, String delFlag, int domitoryId, String endDate, String expressMethod, String generateOrderDate, int orderStatus, int productAmountTotal, int productCount, int shippingId, String startDate, String userid, List<GoodsBean> goods) {
        this.captainId = captainId;
        this.cartId = cartId;
        this.delFlag = delFlag;
        this.domitoryId = domitoryId;
        this.endDate = endDate;
        this.expressMethod = expressMethod;
        this.generateOrderDate = generateOrderDate;
        this.orderStatus = orderStatus;
        this.productAmountTotal = productAmountTotal;
        this.productCount = productCount;
        this.shippingId = shippingId;
        this.startDate = startDate;
        this.userid = userid;
        this.goods = goods;
    }


    //
//    private int captainId;
//    private String delFlag;
//    private int domitoryId;
//    private String endDate;
//    private String expType;
//    private String generateOrderDate;
//    private int orderStatus;
//    private int payType;
//    private int productAmountTotal;
//    private int productCount;
//    private int refund_status;
//    private String shipperCode;
//    private int shippingId;
//    private String startDate;
//    private String userid;
//    private List<GoodsBean> goods;


    public int getCaptainId() {
        return captainId;
    }

    public void setCaptainId(int captainId) {
        this.captainId = captainId;
    }

    public int getCartId() {
        return cartId;
    }

    public void setCartId(int cartId) {
        this.cartId = cartId;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public int getDomitoryId() {
        return domitoryId;
    }

    public void setDomitoryId(int domitoryId) {
        this.domitoryId = domitoryId;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getExpressMethod() {
        return expressMethod;
    }

    public void setExpressMethod(String expressMethod) {
        this.expressMethod = expressMethod;
    }

    public String getGenerateOrderDate() {
        return generateOrderDate;
    }

    public void setGenerateOrderDate(String generateOrderDate) {
        this.generateOrderDate = generateOrderDate;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public int getProductAmountTotal() {
        return productAmountTotal;
    }

    public void setProductAmountTotal(int productAmountTotal) {
        this.productAmountTotal = productAmountTotal;
    }

    public int getProductCount() {
        return productCount;
    }

    public void setProductCount(int productCount) {
        this.productCount = productCount;
    }

    public int getShippingId() {
        return shippingId;
    }

    public void setShippingId(int shippingId) {
        this.shippingId = shippingId;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public List<GoodsBean> getGoods() {
        return goods;
    }

    public void setGoods(List<GoodsBean> goods) {
        this.goods = goods;
    }

    public static class GoodsBean {
        /**
         * commentStatus : string
         * delFlag : string
         * goodsAttr : 颜色：红色,尺寸:xl
         * goodsId : 0
         * goodsName : string
         * goodsPrice : 0
         * goodsSkuImg : string
         * id : 0
         * isPackage : string
         * orderNo : string
         * productNum : 0
         * skuId : 0
         */

        private String commentStatus;
        private String delFlag;
        private String goodsAttr;
        private int goodsId;
        private String goodsName;
        private int goodsPrice;
        private String goodsSkuImg;
        private int id;
        private String isPackage;
        private String orderNo;
        private int productNum;
        private int skuId;

        public GoodsBean(String commentStatus, String delFlag, String goodsAttr, int goodsId, String goodsName, int goodsPrice, String goodsSkuImg, int id, String isPackage, String orderNo, int productNum, int skuId) {
            this.commentStatus = commentStatus;
            this.delFlag = delFlag;
            this.goodsAttr = goodsAttr;
            this.goodsId = goodsId;
            this.goodsName = goodsName;
            this.goodsPrice = goodsPrice;
            this.goodsSkuImg = goodsSkuImg;
            this.id = id;
            this.isPackage = isPackage;
            this.orderNo = orderNo;
            this.productNum = productNum;
            this.skuId = skuId;
        }

        public GoodsBean() {
        }

        public String getCommentStatus() {
            return commentStatus;
        }

        public void setCommentStatus(String commentStatus) {
            this.commentStatus = commentStatus;
        }

        public String getDelFlag() {
            return delFlag;
        }

        public void setDelFlag(String delFlag) {
            this.delFlag = delFlag;
        }

        public String getGoodsAttr() {
            return goodsAttr;
        }

        public void setGoodsAttr(String goodsAttr) {
            this.goodsAttr = goodsAttr;
        }

        public int getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(int goodsId) {
            this.goodsId = goodsId;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public int getGoodsPrice() {
            return goodsPrice;
        }

        public void setGoodsPrice(int goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public String getGoodsSkuImg() {
            return goodsSkuImg;
        }

        public void setGoodsSkuImg(String goodsSkuImg) {
            this.goodsSkuImg = goodsSkuImg;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getIsPackage() {
            return isPackage;
        }

        public void setIsPackage(String isPackage) {
            this.isPackage = isPackage;
        }

        public String getOrderNo() {
            return orderNo;
        }

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public int getProductNum() {
            return productNum;
        }

        public void setProductNum(int productNum) {
            this.productNum = productNum;
        }

        public int getSkuId() {
            return skuId;
        }

        public void setSkuId(int skuId) {
            this.skuId = skuId;
        }

        @Override
        public String toString() {
            return "GoodsBean{" +
                    "commentStatus='" + commentStatus + '\'' +
                    ", delFlag='" + delFlag + '\'' +
                    ", goodsAttr='" + goodsAttr + '\'' +
                    ", goodsId=" + goodsId +
                    ", goodsName='" + goodsName + '\'' +
                    ", goodsPrice=" + goodsPrice +
                    ", goodsSkuImg='" + goodsSkuImg + '\'' +
                    ", id=" + id +
                    ", isPackage='" + isPackage + '\'' +
                    ", orderNo='" + orderNo + '\'' +
                    ", productNum=" + productNum +
                    ", skuId=" + skuId +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "Order{" +
                "captainId=" + captainId +
                ", cartId=" + cartId +
                ", delFlag='" + delFlag + '\'' +
                ", domitoryId=" + domitoryId +
                ", endDate='" + endDate + '\'' +
                ", expressMethod='" + expressMethod + '\'' +
                ", generateOrderDate='" + generateOrderDate + '\'' +
                ", orderStatus=" + orderStatus +
                ", productAmountTotal=" + productAmountTotal +
                ", productCount=" + productCount +
                ", shippingId=" + shippingId +
                ", startDate='" + startDate + '\'' +
                ", userid='" + userid + '\'' +
                ", goods=" + goods +
                '}';
    }
}
